<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务结果 - 后勤保障关键技术识别与预测系统</title>
    <link rel="stylesheet" href="css/styles.css">
</head>

<body data-page="task-results">
    <!-- 顶部导航栏 -->
    <nav class="navbar">
        <div style="display: flex;align-items: center;">
            <div class="navbar-logo">
                <img src="img/logo.png">
            </div>
            <div class="navbar-title">关键技术识别与技术发展水平预测</div>
        </div>
        <div class="navbar-menu"> 
            <div class="navbar-dropdown">
                <button class="dropdown-btn">
                    <svg class="menu-icon" viewBox="0 0 24 24">
                        <path
                            d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" />
                    </svg>
                    <span>设置</span>
                    <svg class="menu-icon" viewBox="0 0 24 24" width="16" height="16">
                        <path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" />
                    </svg>
                </button>
                <div class="dropdown-menu">
                    <a href="settings.html" class="dropdown-item">系统设置</a> 
                    <div class="dropdown-divider"></div>
                    <a onclick="logout()" class="dropdown-item">退出登录</a>
                </div>
            </div> 
            <!-- 用户信息 -->
            <div class="navbar-user">
                <div class="user-avatar">
                    <img src="" id="user-avatar"  >
                </div>
                <div class="user-name" id="user-name"></div>
            </div>
        </div>
    </nav>

    <!-- 主要内容区域 -->
    <main class="main-content">
        <div class="container">
            <!-- 任务信息 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">识别任务详情</h2>
                </div>
                <div class="form-group">
                    <label class="form-label">任务ID</label>
                    <div id="task-evaluation-code"></div>
                </div>
                <div class="form-group">
                    <label class="form-label">任务名称</label>
                    <div id="task-title" ></div>
                </div>
                <div class="form-group">
                    <label class="form-label">执行时间</label>
                    <div id="execution-time"></div>
                </div>
                <div class="form-group">
                    <label class="form-label">状态</label>
                    <div id="task-status"> 
                    </div>


                </div>
            </div>

              <!-- 分析过程 已完成状态下-->
            <div class="card" id="analysis-card">
                <div class="card-header">
                    <h2 class="card-title">分析过程</h2>
                </div>
                <div class="form-group">
                    <label class="form-label">任务进度</label>
                    <div class="progress-bar" id="progress-bar">
                        <div class="progress-inner" style="background-color: #2E5A3E; height: 8px; width: 100%; border-radius: 4px;"></div>
                    </div>
                    <div class="text-right" id="progress-text">0%</div>
                </div> 
                <div class="row">
                    <div class="col-6">
                        <div class="form-group">
                            <label class="form-label">开始时间</label>
                            <div id="start-time"></div>
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-group">
                            <label class="form-label">结束时间</label>
                            <div id="end-time"></div>
                        </div>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="form-label">执行步骤</label>
                    <div id="analysis-steps">
                         <div class="progress-item">
                            <div class="progress-title">资料拉取</div>
                            <div class="progress-meta">
                                <span class="progress-status status-completed">已完成</span>
                                <span style="float: right;">08:00-08:45</span>
                            </div>
                        </div> 
                    </div>
                   
                    <!-- <div class="progress-item">
                        <div class="progress-title">特征提取</div>
                        <div class="progress-meta">
                            <span class="progress-status status-completed">已完成</span>
                            <span style="float: right;">09:30-10:30</span>
                        </div>
                    </div>
                    <div class="progress-item">
                        <div class="progress-title">定量分析</div>
                        <div class="progress-meta">
                            <span class="progress-status status-completed">已完成</span>
                            <span style="float: right;">10:30-12:00</span>
                        </div>
                    </div>
                    <div class="progress-item">
                        <div class="progress-title">结果分析</div>
                        <div class="progress-meta">
                            <span class="progress-status status-completed">已完成</span>
                            <span style="float: right;">12:00-13:30</span>
                        </div>
                    </div>
                    <div class="progress-item">
                        <div class="progress-title">报告生成</div>
                        <div class="progress-meta">
                            <span class="progress-status status-completed">已完成</span>
                            <span style="float: right;">13:30-15:30</span>
                        </div>
                    </div> -->
                </div>
            </div>

            <!-- 识别结果统计 -->
            <div class="card" id="stats-card">
                <div class="card-header">
                    <h2 class="card-title">识别结果统计</h2>
                </div>
                <div class="stats-container">
                    <div class="stat-card">
                        <div class="stat-value" id="new-tech-point-count">0</div>
                        <div class="stat-label">新技术点</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value" id="tech-topic-count">0</div>
                        <div class="stat-label">技术主题</div>
                    </div>
                    <div class="stat-card">
                        <div class="stat-value" id="pending-assess-count">0</div>
                        <div class="stat-label">待评估</div>
                    </div>
                </div>
            </div>

            <!-- 新技术点列表 -->
            <div class="card" id="tech-points-card">
                <div class="card-header">
                    <h2 class="card-title">识别出的新技术点</h2>
                </div>
                <div class="list-container" id="tech-points-list">
                    <!-- <div class="list-item">
                        <div>
                            <div class="list-title">自适应能量回收系统</div>
                            <div class="list-meta">归属目录: 军事能源保障装备专用技术体系 > 野战电源技术</div>
                        </div>
                    <div>
                        <button class="btn btn-sm start-evaluation btn-start-evaluation" data-evaluation-code="" data-tech-point="">发起评估</button>
                    </div>
                   </div>  -->
                </div>
               
            </div>

            <!-- 技术主题列表 -->
            <!-- <div class="card" id="tech-topics-card">
                <div class="card-header">
                    <h2 class="card-title">识别出的技术主题</h2>
                </div>
                <div class="list-container" id="tech-topics-list">
                    <div class="list-item">
                    <div>
                        <div class="list-title">智能穿戴设备技术</div>
                        <div class="list-meta">归属目录: 军需保障装备专用技术体系</div>
                    </div>
                    <div>

                    </div>
                </div> 
                </div>
                
            </div> -->

            <!-- 评估码保存界面 已完成状态-->
            <div class="card" id="evaluation-code-card">
                <div class="card-header">
                    <h2 class="card-title">评估码保存</h2>
                </div>
                <div class="form-group">
                    <label class="form-label">评估码</label>
                    <div class="evaluation-code-display" id="evaluationCode117">3768</div>
                    <div class="text-warning mt-2">请保存此评估码，用于后续评估操作</div>
                    <button class="btn btn-block btn-success mt-3" id="generateCode117" onclick="generateEvaluationCode()">生成评估码</button>
                </div>
            </div>
            <!-- 技术发展水平预测 -->
            <div class="card" id="tech-prediction-card">
                <div class="card-header">
                    <h2 class="card-title">技术发展水平预测</h2>
                </div>
                <div class="form-group">
                    <label class="form-label">选择技术查看发展预测</label>
                    <select class="select-field" id="tech-selector">
                        <!-- <option value="adaptive-energy"></option>  -->
                    </select>
                </div>

                <div class="form-group">
                    <label class="form-label">技术成熟度发展趋势</label>
                    <div class="tech-maturity-timeline">
                        <div class="timeline-container">
                            <!-- 时间线 -->
                            <div class="timeline-bar"></div> 
                            <!-- 时间节点 -->
                            <!-- <div class="timeline-points-container">
                                <div class="timeline-point current">
                                  <div class="point-marker"></div>
                                  <div class="point-label">当前</div>
                                  <div class="point-value">TRL 3</div>
                                </div>
                            </div>  -->
                            <div class="timeline-points-container" id="future-points-container">
                              <div class="timeline-point future-3y">
                                <div class="point-marker"></div>
                                <div class="point-label">3年后</div>
                                <div class="point-value">TRL 5</div>
                              </div> 
                            </div>
                            

                             <!-- <div class="timeline-point future-5y">
                                <div class="point-marker"></div>
                                <div class="point-label">3年后</div>
                                <div class="point-value">TRL 5</div>
                            </div> 

                              <div class="timeline-point future-10y">
                                <div class="point-marker"></div>
                                <div class="point-label">3年后</div>
                                <div class="point-value">TRL 5</div>
                            </div>   -->
                        </div>

                        <!-- 成熟度说明 -->
                        <div class="maturity-description mt-3">
                            <div class="description-item">
                                <span class="description-label">TRL 3:</span>
                                <span class="description-text">概念验证阶段，已完成实验室环境下的功能验证</span>
                            </div>
                            <div class="description-item">
                                <span class="description-label">TRL 5:</span>
                                <span class="description-text">组件验证阶段，在相关环境中完成组件测试</span>
                            </div>
                            <div class="description-item">
                                <span class="description-label">TRL 6:</span>
                                <span class="description-text">系统验证阶段，在相关环境中完成系统测试</span>
                            </div>
                            <div class="description-item">
                                <span class="description-label">TRL 9:</span>
                                <span class="description-text">实际应用阶段，技术已在作战环境中实际部署</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label">预测依据</label>
                    <div class="prediction-basis" id="prediction-basis">
                        <!-- <div class="basis-item">
                            <div class="basis-title">技术发展速度</div>
                            <div class="basis-content">根据同类技术发展历史数据分析，该技术年均成熟度提升约0.3级</div>
                        </div> -->
                        
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 输入专家数量弹出框 -->
     <div id="expertCountModal" class="modal" style=" display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);">
        <div style="width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;">
        <div class="modal-content" style="padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);">
            <div class="modal-header">
                <h3 class="card-title">输入专家数量</h3>
                <button id="close-expertCountModal" class="btn btn-sm btn-secondary" onclick="closeExpertCountModal()" >关闭</button>
            </div>
           <input type="hidden"  id="task_task_id" class="form-input" >
           <input type="hidden"  id="task_tech_point_id" class="form-input" >
           <input type="hidden" id="task_evaluation_code" class="form-input" >
            <div class="modal-body"> 
                <div class="form-group" style="padding: 10px; margin: 10px 0;">
                    <label class="form-label" style="display: block; margin-bottom: 8px; font-weight: bold; color: #333;">输入新的专家数量</label>
                    <input type="number" id="newExpertCount" class="form-input"  min="1" value="1" 
                           style="width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;">
                </div>
            </div>
             <button class="btn btn-block" id="submit-evaluation-code" onclick="taskSubmitEvaluation()">提交</button> 
        </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <nav class="left-nav">
        <a href="index.html" class="nav-item" data-tab="home">
            <svg class="nav-icon" viewBox="0 0 24 24">
                <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
            </svg>
            <span>首页</span>
        </a>
        <a href="data.html" class="nav-item" data-tab="data">
            <svg class="nav-icon" viewBox="0 0 24 24">
                <path
                    d="M19 3H5c-1.1 0-1.99.9-1.99 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" />
            </svg>
            <span>数据</span>
        </a>
        <a href="themes.html" class="nav-item" data-tab="themes">
            <svg class="nav-icon" viewBox="0 0 24 24">
                <path
                    d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" />
            </svg>
            <span>分析</span>
        </a>
        <a href="evaluation.html" class="nav-item" data-tab="evaluation">
            <svg class="nav-icon" viewBox="0 0 24 24">
                <path
                    d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
            </svg>
            <span>评估</span>
        </a>
    </nav>
<script src="js/jquery-3.6.0.min.js"></script>
    <script src="js/app.js"></script>
</body>

</html>